package fr.km.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class SaveEvent extends GwtEvent<SaveHandler> {

	  /**
	   * Event type for click events. Represents the meta-data associated with this
	   * event.
	   */
	  private static final Type<SaveHandler> TYPE = new Type<SaveHandler>();

	  /**
	   * Gets the event type associated with click events.
	   * 
	   * @return the handler type
	   */
	  public static Type<SaveHandler> getType() {
	    return TYPE;
	  }

	  public SaveEvent() {
		  super();
	  }

	  @Override
	  public final Type<SaveHandler> getAssociatedType() {
	    return TYPE;
	  }

	  @Override
	  protected void dispatch(SaveHandler handler) {
	    handler.onSave(this);
	  }

}
